package com.kalvan.remoteserver.bean.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志记录实体
 * 表名 s_log
 *
 * @author kalvan
 * @date 2019-06-01 02:29:27
 */
@Getter
@Setter
public class LogDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人", required = true)
    private String logUser;

    /**
     * 日志来源
     */
    @ApiModelProperty(value = "日志来源系统", required = true, example = "获取systemCode配置")
    private String systemCode;

    /**
     * 操作类型
     */
    @ApiModelProperty(value = "日志分组", required = true, example = "按表名定义")
    private String logGroup;
    /**
     * 操作类型
     */
    @ApiModelProperty(value = "日志类型", required = true, example = "增、删、改、查..")
    private Integer logType;

    /**
     * 操作路径
     */
    @ApiModelProperty(value = "操作路径", required = true, example = "可以传action路径或者权限路径")
    private String logAction;

    /**
     * 操作说明
     */
    @ApiModelProperty(value = "操作说明", required = true)
    private String logRemark;

    /**
     * 操作内容明细
     */
    @ApiModelProperty(value = "更新后内容,json格式")
    private String logDetail;

    /**
     * 操作前内容明细
     */
    @ApiModelProperty(value = "更新前内容,json格式")
    private String logOldDetail;

    /**
     * 被操作者
     */
    @ApiModelProperty(value = "被操作对象唯一标识")
    private String logOperated;

    /**
     * 操作ip
     */
    @ApiModelProperty(value = "操作ip")
    private String logIp;

    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    private Date logTime;

}
